# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-libfwsi-python
_pkgname=libfwsi
pkgver=20240423
pkgrel=3
pkgdesc='Python bindings module for libfwsi.'
url='https://pypi.org/project/libfwsi-python/#files'
arch=('x86_64' 'aarch64')
license=('LGPL3')
depends=('python')
makedepends=('python2-setuptools' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-python-$pkgver.tar.gz")
sha512sums=('7125767419fae3638726814574bbc4232f28b2f9834fa77128b884f0d0c77fa694c1420428238b09b4381627fad802474802ce773d31b6db29577b0b3353e251')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

